<?php
	$tblBusiness = new Zendvn_Models_BusinessItem(); 
	$items = $tblBusiness->listItem($this->arrParam,array('task'=>'featured-index'));
	if(!empty($items)){
?>
<div class="box-right">
	<div class="title-right">Doanh nghiệp tiêu biểu</div>
		<div class="cnt-right">
			<div class="list">
			<?php
					foreach ($items as $key => $val){
						$tblCut 	= new Zendvn_File_CutTring();					
						$title 		= $val['name'];
						$title 		= $tblCut -> cutTring(50, $title, null);
						
						$address 	= $val['address'];
						$phone 		= $val['phone'];
						$website 	= $val['website'];
						
						if(!empty($val['picture'])){
	                    	$linkImg	= FILES_URL . '/news/images450x450/' . $val['picture'];
	                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="45" alt="'.$name.'" />';
	                    }else{
	                    	$linkImg	= FILES_URL . '/news/images450x450/no-image.jpg';
	                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="45" alt="'.$name.'" />';
	                    }
						
						$lang = $this->arrParam['lang'];
	                    if(empty($lang)){
	                    	$lang = 'vi';
	                    }else{
	                    	$lang = $this->arrParam['lang'];
	                    }
	                    $urlOptions = array('module'=>'business','controller'=>'index',
														'action'=>'detail',
														'nname'=>$val['alias_name'],
														'title'=>$val['alias'],
	                    								'nid'=> $val['cat_id'],
														'id'=>$val['id'],
	                    								'lang'=>$lang);
	                    $linkDetail = $this->url($urlOptions,'business-detail');
	                    
						
			?>
				<div class="row-list">
                	<a title="<?php echo $val['name']?>" class="img" href="<?php echo $linkDetail?>"><?php echo $picture?></a>
                	<h3><a title="<?php echo $val['name']?>" href="<?php echo $linkDetail?>"><?php echo $title?></a></h3>
                </div>
			<?php }?>
			</div>
		</div>
</div>
<?php } ?>